var app = new Vue({
    el: '#ppage',
    data() {
        return {
          BASE_PATH: BASE_PATH,
          sites:[],
          srcdata:[
            "image/svg/release/icon_recruitment.svg",
            "image/svg/release/icon_dating.svg",
            "image/svg/release/icon_decorate.svg",
            "image/svg/release/icon_education.svg",
            "image/svg/release/icon_food.svg",
            "image/svg/release/icon_healthy_life.svg"
        ]
        };
    },
    mounted(){
        _getFbFl(this);
    },
    methods: {
        showSites:function(alldatas){
            this.sites=alldatas;
        } 
    },
    updated(){
        
    }
});
//得到我的发布的信息分类与发布区分类
function _getFbFl(that){
        //保存信息
        $.ajax({
            type: "post",
            url: BASE_PATH + "/app/fb/getflbyfbandmy",
            dataType: "json", //返回数据形式为json
            data: {id:userModel.id,page:1,limit:100},
            success: function (result) {
                if (result.code == 0) {
                    var rows=result.data;
                    for(var i=0;i<rows.length;i++){
                        rows[i].src=that.srcdata[i%6];
                    }
                    that.showSites(rows);
                } else {
                    layer.open({
                        content: result.msg
                        , skin: 'msg'
                        , time: 5
                    });
                }
            }
        });
}

